package com.xbongbong.pro.sms.pojo;

import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import java.io.Serializable;

/**
 * @description: 短信接收人
 * @Author: hongxiao
 * @date: 2019-01-17 10:13
 */
@Getter
@Setter
@ToString
public class SmsReceiverPojo implements Serializable {
    private static final long serialVersionUID = -8969816189060492874L;
    /**
     * 短信接收人名字
     */
    private String name;

    /**
     * 负责人名字
     */
    private String ownerName;
    /**
     * 短信接收人电话
     */
    private String phone;
    /**
     * 对象id
     */
    private Long refId;
    /**
     * 对象类型，参考XbbRefTypeEnum
     */
    private Integer refType;
    /**
     * 应用id
     */
    private Long appId;
    /**
     * 菜单id
     */
    private Long menuId;
    /**
     * 表单id
     */
    private Long formId;
    /**
     * 数据来源
     */
    private Integer saasMark;
    /**
     * 字段标识
     */
    private String attr;

    public SmsReceiverPojo() {}

    public SmsReceiverPojo(String name, String phone) {
        this.name = name;
        this.phone = phone;
    }

    public SmsReceiverPojo(String name, String phone, Long refId, Integer refType, Long appId, Long menuId, Long formId, Integer saasMark) {
        this.name = name;
        this.phone = phone;
        this.refId = refId;
        this.refType = refType;
        this.appId = appId;
        this.menuId = menuId;
        this.formId = formId;
        this.saasMark = saasMark;
    }

    public SmsReceiverPojo(String name, String phone, Long refId, Integer refType, Long appId, Long menuId, Long formId, Integer saasMark, String attr) {
        this.name = name;
        this.phone = phone;
        this.refId = refId;
        this.refType = refType;
        this.appId = appId;
        this.menuId = menuId;
        this.formId = formId;
        this.saasMark = saasMark;
        this.attr = attr;
    }
}
